package feng.exception;

import feng.common.ErrorCode;
import lombok.Data;

/**
 * @author fengzongpeng
 * @version V1.0
 */
@Data
public class BaseException extends RuntimeException{

    private Integer code;

    private String message;

    public BaseException() {
        super();
    }

    public BaseException(ErrorCode code) {
        this.code = code.getCode();
        this.message = code.getMessage();
    }
}
